package chapter06


/**
  * 枚举类和应用类
  */
object Test18_EnumAndApp extends Enumeration {
  // 定义类型别名
  type SA = java.io.BufferedReader

  def main(args: Array[String]): Unit = {
    println(WeekDay.MONDAY)
  }

}


// 定义枚举类
object WeekDay extends Enumeration {
  val MONDAY = Value(1, "monday")
}

// 定义应用类对象
object TestApp extends App {

  print(123)
}
